package util

import (
	"fmt"
	"math"
	"math/big"
	"math/rand"
	"time"
)

func TestMath() {
	fmt.Println(math.MaxFloat32)
	fmt.Println(math.MaxFloat64)

	fmt.Println(math.MaxInt64)

	math.Sqrt(25)
	math.Exp(5)

	Add(2, 3)

	math.Sin(90)
	math.Floor(5.5)
	fmt.Println(math.Ln2)
	fmt.Println()

	rand.Seed(time.Now().Unix())
	for i := 0; i < 10; i++ {
		fmt.Println(rand.Int())
		fmt.Println(rand.Intn(100))
	}
	fmt.Println()

	for i := 0; i < 10; i++ {
		fmt.Println(rand.Float32())
	}
	fmt.Println()

	for i := 0; i < 10; i++ {
		fmt.Println(rand.Int31n(100))
	}
	fmt.Println()

	b := big.NewInt(1)
	fmt.Println(b.Int64())
}
